package cn.coldleaf.wiki.interceptors;

import cn.coldleaf.wiki.configure.AppConfig;
import org.springframework.web.servlet.HandlerInterceptor;

/**
 * @datetime 2023/10/15 下午3:46
 * @user cold
 **/
public abstract class AbstractInterceptor implements HandlerInterceptor {
    protected String name;
    protected String [] patterns;
    protected String [] excludePathPatterns;
    protected AppConfig appConfig;

    public String getName() {
        return name;
    }

    public String[] getPatterns() {
        return patterns;
    }

    public String[] getExcludePathPatterns() {
        return excludePathPatterns;
    }

    public void  setAppConfig(AppConfig appConfig){
        this.appConfig = appConfig;
    }
}
